﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Data.Tables
{
    [Table("WorkLocation")]
    public class WorkLocation : WorkLocationFields
    { }

    public class WorkLocationQuery : WorkLocationFields
    {
        [Display(Name = "Is Active")]
        public string IsActiveYesNo { get; set; }
    }

    public class WorkLocationFields
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        [Display(Name = "ID")]
        public int ID { get; set; }

        [Required]
        [Display(Name = "Work Location")]
        public string WorkLocationName { get; set; }

        [Required]
        [Display(Name = "Address")]
        public string Address { get; set; }

        [Required]
        [Display(Name = "Contact Numbers")]
        public string ContactNumbers { get; set; }

        [Display(Name = "Is Active")]
        public bool IsActive { get; set; }
    }

}